Let dependabot maintain the seed workflows too - #66
Open
jeremy wants to merge 1 commit into
Open
Conversation
prompts/seed-cli.md copies seed/.github/workflows/* verbatim into every generated CLI, but dependabot only saw the root, so those templates drifted: checkout v6.0.2 and setup-go v6.3.0 against v7.0.1 and v7.0.0 in our own workflows. Every new CLI started on that older set. Adding the path to directories: fixes it at the source rather than by syncing the copies. The docs' 'for GitHub Actions, use the value /' describes the root case; dependabot-core branches on it, and a non-root entry is scanned directly for *.yml -- which is tested upstream with directory: /.github/workflows. Hence the path is the workflows directory itself; /seed alone would scan seed/*.yml and match nothing. Not urgent on its own: the seed also ships .github/dependabot.yml, so a generated project catches up on its first weekly run, and neither lagging pin carries an advisory. This just stops shipping a stale starting point.
There was a problem hiding this comment.
Pull request overview
Extends Dependabot’s GitHub Actions updates to include seed workflow templates, preventing generated CLIs from starting with stale action versions.
Changes:
- Replaces the single root directory with root and seed workflow directories.
- Documents Dependabot’s non-root workflow scanning behavior.
Tip
If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes the drift Copilot spotted on #63, at the source rather than by syncing copies.
prompts/seed-cli.mdcopiesseed/.github/workflows/*verbatim into every generated CLI, but Dependabot only ever saw the root, so the templates fell behind our own workflows:Why
directoriesworks hereGitHub's option reference says "For GitHub Actions, use the value
/", which reads like a restriction — it isn't; it describes the root case.dependabot-core'sgithub_actions/file_fetcher.rbbranches on it:and its own spec covers the non-root case directly:
So the entry has to name the workflows directory itself.
"/seed"would scanseed/*.ymland match nothing, which is probably why this looks unsupported at a glance.Why this rather than a sync check
The obvious alternatives are a CI check that seed pins equal live pins, or generating the seed from the live workflows. Both are worse: the first adds friction to every action bump forever, the second is a rewrite. Letting the updater own the files costs two lines and no ongoing work — the seed group will simply appear in the weekly grouped PR alongside the root one.
Severity, honestly
Low.
seed/.github/dependabot.ymlis itself copied into generated projects and configuresgithub-actionsweekly, so a new CLI catches up on its first run — the stale window is bounded, not permanent. And neither lagging pin (checkoutv6.0.2,setup-gov6.3.0) carries a known advisory. This is about not shipping a stale starting point, not about exposure.zizmor --collect=allis clean across the tree, seed workflows included. No workflow behaviour changes here — only which files Dependabot looks at.